package com.rdc.jiajiadictionary.notebook;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;

import com.rdc.jiajiadictionary.R;


public class NotebookActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.notebook_activity);
        NotebookFragment notebookFragment = (NotebookFragment) getSupportFragmentManager().findFragmentById(R.id.daily_sentence_fragment_container);

        if (null == notebookFragment) {
            notebookFragment = new NotebookFragment();

            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.add(R.id.notebook_fragment_container,notebookFragment);
            transaction.commit();
        }

//        DailySentencePresenter dailySentencePresenter = new DailySentencePresenter(dailySentenceFragment);

    }

}